<!--
    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<!--
    Copyright (c) 2014, Joyent, Inc.
-->

<h3>Snapshots</h3>
<table class="table">
  {{#if kvm}}
  <tbody>
    <tr>
        <td class="empty">Snapshots are not supported for KVM based Virtual Machines</td>
    </tr>
  </tbody>
  {{else}}

      {{#if hasSnapshots}}
      <thead>
        <th>Name</th>
        <th>Snapshot Date</th>
        <th></th>
        <th></th>
      </thead>
      {{/if}}

      <tbody>
        {{#unless hasSnapshots}}
        <tr><td class="empty">This VM does not have any snapshots.</td></tr>
        {{/unless}}
      </tbody>
      {{#role "operators"}}
          <tfoot>
            <td><button class="btn btn-info btn-sm"><i class="fa fa-camera-retro fa-lg"></i> Create Snapshot</button> </h3></td>
          </tfoot>
      {{/role}}
  {{/if}}

</table>
